/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.navid.trafalgar.model;

import com.jme3.asset.AssetManager;
import com.jme3.system.AppSettings;
import com.navid.trafalgar.model.opengl2.ModelBuilder;

/**
 *
 * @author alberto
 */
public class ModelBuilderFactory {

    public static IModelBuilder getModelBuilder(AppSettings settings, AssetManager assetManager) {
        
        if(settings.getRenderer().equals(AppSettings.LWJGL_OPENGL1)){
            return new com.navid.trafalgar.model.opengl1.ModelBuilder(assetManager);
        }

        return new ModelBuilder(assetManager);
    }
}
